package cn.xiaoliu.hrm.service;

import cn.xiaoliu.hrm.dto.SmsCodeDto;
import cn.xiaoliu.hrm.util.AjaxResult;

import javax.validation.Valid;
import java.io.IOException;

public interface IVerifyService {
    /**
     * 获取验证码图片
     * @param key
     * @return
     */
    AjaxResult imageCode(String key);

    /**
     * 验证码发送以及校验
     * @param dto
     * @return
     */
    AjaxResult sendSmsCode(@Valid SmsCodeDto dto);
}
